#include "portaudio.h"
#include "rstream.h"

class AudioSampler //class for handling all audio operations
{
	public:
		bool prepareTuner(); //initialize the stream for reading audio, returns a bool indicating whether it was succesful
		void stopTuner(); //close the audio stream
		void playTone(); //play a single tone for the metronome
		float getFrequency(); //get the current frequency from the audio stream, returned as float
		
	private:
		PortAudioInit init_;
		recordStream rstream_;
};